package com.tsintergy.tmosguide.tmos.web;

import com.tsieframework.boot.autoconfigure.TsieBootApplication;
import com.ulisesbocchio.jasyptspringboot.environment.StandardEncryptableEnvironment;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * <p>
 * </p>
 *
 * @author longyz@tsintergy.com
 * @date 2025-07-12 15:40:46
 */
//启用服务发现，启用后会从注册应用名和ip到注册中心，如果是消费者则接收服务提供者的应用名和ip信息
@EnableDiscoveryClient
//启用FeignClient, 作为消费者时需要用到，作为服务提供者时不需要配置，basePackages用于扫描声明了@FeignClient的接口
@EnableFeignClients(basePackages = "com.tsintergy.tmosguide.tmos.feignapi")
@TsieBootApplication
public class WebRunCloudApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(WebRunCloudApplication.class)
                .environment(new StandardEncryptableEnvironment())
                .applicationStartup(new BufferingApplicationStartup(20480))
                .run(args);
    }
}
